import os
import configparser

config_path = os.path.join(r'D:\python\Scripts\project\testApi\testFile', 'config.ini')
config = configparser.ConfigParser()
config.read(config_path, encoding='utf-8')


def readConfig(name1, name2):
    value = config.get(name1, name2)
    # print(value)
    return value

# if __name__ == '__main__':
# readConfig().get_http('url')
# readConfig().get_http('account')
# readConfig().get_http('password')
